OPC Studio User's Guide and Reference
Installing NuGet Packages using .NET CLI Tools
Fundamentals > Development Fundamentals > Referencing the NuGet Packages (.NET) > Installing NuGet Packages using .NET CLI Tools

Note that before installing the NuGet packages, you need to create a .NET 6 or 8 project of the desired type. The NuGet packages get installed "into" the project.

Use this procedure also when your development environment is Visual Studio Code.

In order to install a QuickOPC or OPC Wizard NuGet package and reference it from your project:

  1. Open a command prompt.

  2. Navigate to the directory of your project.

  3. For QuickOPC, type the following: dotnet add package OpcLabs.QuickOpc. For OPC Wizard, type the following: dotnet add package OpcLabs.OpcWizard. This command adds QuickOPC or OPC Wizard package reference to the project file.

    The above command actually adds a reference to the package corresponding always to the very latest QuickOPC or OPC Wizard version. If you want to be sure that you referencing a package for OPC Studio 2024.2 version, use command like dotnet add package OpcLabs.QuickOpc --version 5.81 instead.
  4. If you need to add more packages (see List of Component Packages), repeat the dotnet add package command, giving it the package Id as an argument.

See Also

Introduction

Getting Started